<template>
  <rich-text :nodes="richText"/>
</template>
<script setup>
const props = defineProps({
  nodes: {
    type: String,
    default: ''
  },
})
const richText = computed(() => {
  let str = ''
  str = props.nodes.replace(new RegExp('src="', 'g'), `style="max-width:100%!important;" src="`);
  return str
})
</script>
<style scoped lang="scss">

</style>